<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta content="telephone=no" name="format-detection" />
    <!-- 留作将来统一添加 -->
    <TEMPLATE>${TEMPLATE}</TEMPLATE>
    <title>激活</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css">
    <link rel="stylesheet" type="text/css" href="../css/index.css">
    <link rel="stylesheet" type="text/css" href="../css/data-flex.min.css">
    <style type="text/css">
        body,
        html {
            background-color: rgba(0, 0, 0, 0);
        }
        

        body {
            background-color: rgb(0,0,0,0.5);
        }
        
        .vueApp {
            width: 100vw;
            height: 100vh;
        }
        
        .container {
            width: 330px;
            background:rgba(255,255,255,1);
            border-radius:10px;
        }

        .title {
            margin-top: 25px;
            font-size:16px;
            font-weight:500;
            color:rgba(63,64,70,1);
            line-height:19px;
        }

        .content {
            padding-left: 15px;
            padding-right: 15px;
            margin-top: 10px;
            font-size:15px;
            font-weight:400;
            color:rgba(63,64,70,1);
            line-height:25px;
        }

        .text--highlight {
            font-size:15px;
            font-weight:400;
            color:rgba(0,149,235,1);
            line-height:25px;
        }

        .btns {
            position: relative;
            margin-top: 20px;
        }

        .btns::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 1px;
            transform: scaleY(0.5);
            background:rgba(226,228,233,1);
        }

        .btn-cancel {
            position: relative;
            flex-basis: 50%;
            height: 50px;
            font-size:18px;
            font-weight:400;
            color:rgba(127,129,141,1);
        }

        .btn-cancel::after {
            content: "";
            position: absolute;
            top: 0;
            right: 0;
            width: 1px;
            height: 100%;
            transform: scaleX(0.5);
            background:rgba(226,228,233,1);
        }

        .btn-confirm {
            flex-basis: 50%;
            height: 50px;
            font-size:18px;
            font-weight:400;
            color:rgba(90,194,255,1);
        }
    </style>
</head>

<body>
    <div class="vueApp" v-cloak data-flex="main:center cross:center">
        <div class="container">
            <div class="title" data-flex="cross:center main:center">
                用户协议和隐私协议
            </div>
            <div class="content">
                请您务必审慎阅读，充分理解“用户协议”和“隐私协议”各条款。
            </div>
            <div class="content">
                您可阅读&nbsp;<span class="text--highlight" @click="openPactWin('3', '用户协议')">《用户协议》</span>&nbsp;<span class="text--highlight" @click="openPactWin('4', '隐私协议')">《隐私协议》</span>&nbsp;了解详细信息。如您同意，请点击“同意”并开始接受我们的服务。
            </div>
            <div class="btns" data-flex>
                <div class="btn-cancel" onclick="api.closeWidget({silent: true});" data-flex="cross:center main:center">
                    暂不使用
                </div>
                <div class="btn-confirm" data-flex="cross:center main:center" @click="closeThisFrame()">
                    同意
                </div>
            </div>
        </div>
    </div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/service/service-tool.js"></script>
<script type="text/javascript" src="../script/service/service-app.js"></script>
<script type="text/javascript" src="../script/service/service-user.js"></script>
<script type="text/javascript" src="../script/service/service-logic.js"></script>
<script type="text/javascript" src="../script/service/service-attr.js"></script>
<script type="text/javascript" src="../script/jquery.min.js"></script>
<script type="text/javascript" src="../script/vue.min.js"></script>
<script type="text/javascript">
    // html 的引号一律为双引号(""),js 为单引号('')
    var USER, $S, vm, param;
    apiready = function() {
        $S = SERVICE();
        USER = USER();
        console.log(JSON.stringify(api.pageParam) + '=====pageParam');
        // 获取参数
        param = api.pageParam;
        fnInit();
    };
    // 初始化
    function fnInit() {
        vm = new Vue({
            el: '.vueApp',
            data: {}
        });
    }

    function openPactWin(param, title) {
        fnOpenPublicWin(title, 'question/richText_frm', {
            textType: param
        });
    }

    function closeThisFrame() {
        api.setPrefs({
            key: '_user_is_agree_',
            value: 'userAgree'
        });
        api.sendEvent({
            name: '_user_is_agree_'
        })
        api.closeFrame({
            name: 'user_info_warning'
        });
    }
</script>

</html>